package anji.plus.system.mark.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 记录表
 */
@Data
public class PrizeInfoRecord {

    private static final long serialVersionUID = 1L;

    /**
     * 获奖人姓名
     */
    @TableField("USER_NAME")
    private String userName;


    /**
     * 奖品名称
     */
    @TableField("PRIZE_NAME")
    private String prizeName;

    /**
     * 奖品名称
     */
    @TableField("PRIZE_LEVEL")
    private String prizeLevel;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;



}